package com.wlc.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("student_scores")  // Mybatis-Plus表名映射
public class StudentScore {
    @TableId(type = IdType.AUTO) // 主键策略
    @TableField("id")
    private String id;

    @TableField("student_name")
    private String studentName;

    @TableField("course")
    private String course;

    @TableField("score")
    private Integer score;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

}